import request from '@/utils/request'
//获取品牌列表接口 admin/product/baseTrademark/{page}/{limit}
export const getTradeMark=(page,limit)=>request({url:`/admin/product/baseTrademark/${page}/${limit}`,methods:'get'})
//添加商品更新商品 /admin/product/baseTrademark/save
export const addOrupdataTradeMark=(trademark)=>{
    if(trademark.id){
        return request({url:'/admin/product/baseTrademark/update',method:'put',data:trademark})
    }else{
        return request({url:'/admin/product/baseTrademark/save',method:'post',data:trademark})
    }
}
//删除 /admin/product/baseTrademark/remove/{id}
export const removeTrademark=(id)=>request({url:`/admin/product/baseTrademark/remove/${id}`,method:'delete'})